package tp.tecnicasdisenio.job;

import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import tp.tecnicasdisenio.model.mail.MailProcessor;

public class MailProcessorJob implements Job {

	  @Override
	  public void execute(JobExecutionContext arg0) throws JobExecutionException {
	    System.out.println("[CRON] " + new Date() + ": Entrando MailProcessorJob."); // Change for a Logger.
	    MailProcessor.getInstance().process();
	    System.out.println("[CRON] " + new Date() + ": Saliendo MailProcessorJob.");
	  }

	}
